﻿<%@ Page Language="C#" AutoEventWireup="true" Culture="en-GB" CodeFile="ViewPurchaseOrderLog.aspx.cs"
    Inherits="Main_Admin_ViewPurchaseOrderLog" %>

<%@ Register Src="~/User Controls/PageHeading.ascx" TagName="heading" TagPrefix="acc" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="../../JavaScript/jquery-1.4.2.min.js" type="text/javascript"></script>
    <script src="../../JavaScript/HorizontalTab.js" type="text/javascript"></script>
    <link href="../../Styles/HorizontalTab.css" rel="stylesheet" type="text/css" />
    <script src="../../JavaScript/Commons.js" type="text/javascript"></script>
    <link href="../../Styles/accounts.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <acc:heading ID="pagehead" runat="server" HeadingText="Application Log Detail" />
    </div>
    <%--  <div align="right" style="margin-right: 1%;">
        <table style="background-color: #88BD6E;">
            <tr>
                <td style="padding: 10px;">
                    Log Type
                </td>
                <td>
                    <asp:DropDownList ID="ddlLog" runat="server" Width="150px" CssClass="dropdown">
                        <asp:ListItem Value="0" Text="--Select Log--"></asp:ListItem>
                        <asp:ListItem Value="1" Text="Purchase Order"></asp:ListItem>
                        <asp:ListItem Value="2" Text="Application log"></asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td style="padding: 10px;">
                    Column Name<span style="color: Red;">*</span>
                </td>
                <td>
                    <asp:DropDownList ID="ddlColumn" runat="server" Width="150px" CssClass="dropdown"
                        onchange="Changedata();">
                        <asp:ListItem Value="0" Text="--Select Column(s)--"></asp:ListItem>
                        <asp:ListItem Value="1" Text="User Name"></asp:ListItem>
                        <asp:ListItem Value="2" Text="Log Type"></asp:ListItem>
                        <asp:ListItem Value="3" Text="Page Name"></asp:ListItem>
                        <asp:ListItem Value="4" Text="IP Address"></asp:ListItem>
                        <asp:ListItem Value="5" Text="Date"></asp:ListItem>
                    </asp:DropDownList>
                    <script type="text/javascript">
                        function Changedata() {
                            if (document.getElementById("txtfilterData").value != '') {
                                document.getElementById("txtfilterData").value = '';
                            }
                        }
                    </script>
                </td>
                <td style="width: 30px;">
                </td>
                <td>
                    Filter Data<span style="color: Red;">*</span>
                </td>
                <td>
                    <asp:TextBox ID="txtfilterData" runat="server" Width="180px"></asp:TextBox>
                </td>
                <td>
                    <asp:Button ID="btnSearch" runat="server" OnClientClick="return validation();" Text="Search"
                        CssClass="button" Width="60px" OnClick="btnSearch_Click" />
                    <script type="text/javascript">
                        function validation() {
                            if (document.getElementById("txtfilterData").value == '') {
                                alert("Please Enter Filter Data.");
                                document.getElementById("txtfilterData").setfocus();
                            }
                            else if (document.getElementById("ddlColumn").selectedIndex == '0') {
                                alert("Please Select Column Data.");
                                document.getElementById("ddlColumn").setfocus();
                            }
                        }
                    </script>
                </td>
                <td style="width: 20px;">
                </td>
            </tr>
        </table>
    </div>--%>    
        <div id="wrapper" style="margin-left: 1%; width: 98%;">
            <ul class="tabs">
                <li><a href="javascript:void(0)" class="defaulttab" rel="tabGeneral">General</a></li>
                <li><a href="javascript:void(0)" rel="tabItemMaster">Item Master</a></li>
                <li><a href="javascript:void(0)" rel="tabPurchaseOrder">Purchase Order</a></li>
                <li><a href="javascript:void(0)" rel="tabPurchaseReceive">Purchase Receive</a></li>
                <li><a href="javascript:void(0)" rel="tabItemRequest">Item Request</a></li>
            </ul>
            <div class="tab-content" id="tabGeneral" runat="server" style="width: 97%;">
                <asp:GridView ID="grdviewGeneral" CssClass="gridview" runat="server" HeaderStyle-Height="35px"
                    HeaderStyle-Font-Names="Verdana" HeaderStyle-Font-Size="11px" AutoGenerateColumns="false"
                    Width="100%">
                    <Columns>
                        <asp:TemplateField HeaderText="Sr.No." ItemStyle-Font-Names="Verdana" ItemStyle-Font-Size="11px">
                            <ItemTemplate>
                                <%#Container.DataItemIndex +1 %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Edit By" ItemStyle-Width="10%" ItemStyle-Font-Names="Verdana"
                            ItemStyle-Font-Size="11px">
                            <ItemTemplate>
                                <asp:Label ID="lblUserId" runat="server" Text='<%#Bind("userid")%>' Font-Names="Verdana"
                                    Font-Size="11px"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Log Type" ItemStyle-Width="15%" ItemStyle-Font-Names="Verdana"
                            ItemStyle-Font-Size="11px">
                            <ItemTemplate>
                                <asp:Label ID="lblLogtype" runat="server" Text='<%#Bind("logtype")%>' Font-Names="Verdana"
                                    Font-Size="11px"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="log Details" ItemStyle-Width="45%" ItemStyle-Font-Names="Verdana"
                            ItemStyle-Font-Size="11px">
                            <ItemTemplate>
                                <div id="divlogmsg" runat="server" style="height: 30px;" onmouseover="divscroll(this,150)">
                                    <asp:Label ID="lblmsg" runat="server" Text='<%#Bind("logmesg")%>'></asp:Label>
                                </div>
                                <script type="text/javascript">
                                    function divscroll(divid, h) {
                                        //alert(divid.id)
                                        $('#' + divid.id).slimScroll({
                                            height: h + 'px'
                                        });
                                    }
                                </script>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Page Name" ItemStyle-Width="10%" ItemStyle-Font-Names="Verdana"
                            ItemStyle-Font-Size="11px">
                            <ItemTemplate>
                                <asp:Label ID="lblPageName" runat="server" Text='<%#Bind("pagename")%>' Font-Names="Verdana"
                                    Font-Size="11px"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="IpAddress" ItemStyle-Width="10%" ItemStyle-Font-Names="Verdana"
                            ItemStyle-Font-Size="11px">
                            <ItemTemplate>
                                <asp:Label ID="lblIpAddress" runat="server" Text='<%#Bind("ipaddr")%>' Font-Names="Verdana"
                                    Font-Size="11px"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Date" ItemStyle-Width="10%" ItemStyle-Font-Names="Verdana"
                            ItemStyle-Font-Size="11px">
                            <ItemTemplate>
                                <asp:Label ID="lblDateTime" runat="server" Text='<%#Bind("datetime")%>' Font-Names="Verdana"
                                    Font-Size="11px"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </div>
            <div class="tab-content" id="tabItemMaster" runat="server" style="width: 97%;">
                <asp:GridView ID="grdviewItem" CssClass="gridview" runat="server" HeaderStyle-Height="35px"
                    HeaderStyle-Font-Names="Verdana" HeaderStyle-Font-Size="11px" AutoGenerateColumns="false"
                    Width="100%">
                    <Columns>
                        <asp:TemplateField HeaderText="Sr.No." ItemStyle-Font-Names="Verdana" ItemStyle-Font-Size="11px">
                            <ItemTemplate>
                                <%#Container.DataItemIndex +1 %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Edit By" ItemStyle-Width="10%" ItemStyle-Font-Names="Verdana"
                            ItemStyle-Font-Size="11px">
                            <ItemTemplate>
                                <asp:Label ID="lblUserId" runat="server" Text='<%#Bind("userid")%>' Font-Names="Verdana"
                                    Font-Size="11px"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Log Type" ItemStyle-Width="15%" ItemStyle-Font-Names="Verdana"
                            ItemStyle-Font-Size="11px">
                            <ItemTemplate>
                                <asp:Label ID="lblLogtype" runat="server" Text='<%#Bind("logtype")%>' Font-Names="Verdana"
                                    Font-Size="11px"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="log Details" ItemStyle-Width="45%" ItemStyle-Font-Names="Verdana"
                            ItemStyle-Font-Size="11px">
                            <ItemTemplate>
                                <div id="divlogmsg" runat="server" style="height: 150px; overflow-y: scroll;" onmouseover="divscroll(this,150)">
                                    <asp:Label ID="lblmsg" runat="server" Text='<%#Bind("logmesg")%>'></asp:Label>
                                </div>
                                <script type="text/javascript">
                                    function divscroll(divid, h) {
                                        //alert(divid.id)
                                        $('#' + divid.id).slimScroll({
                                            height: h + 'px'
                                        });
                                    }
                                </script>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Page Name" ItemStyle-Width="10%" ItemStyle-Font-Names="Verdana"
                            ItemStyle-Font-Size="11px">
                            <ItemTemplate>
                                <asp:Label ID="lblPageName" runat="server" Text='<%#Bind("pagename")%>' Font-Names="Verdana"
                                    Font-Size="11px"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="IpAddress" ItemStyle-Width="10%" ItemStyle-Font-Names="Verdana"
                            ItemStyle-Font-Size="11px">
                            <ItemTemplate>
                                <asp:Label ID="lblIpAddress" runat="server" Text='<%#Bind("ipaddr")%>' Font-Names="Verdana"
                                    Font-Size="11px"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Date" ItemStyle-Width="10%" ItemStyle-Font-Names="Verdana"
                            ItemStyle-Font-Size="11px">
                            <ItemTemplate>
                                <asp:Label ID="lblDateTime" runat="server" Text='<%#Bind("datetime")%>' Font-Names="Verdana"
                                    Font-Size="11px"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </div>
            <div class="tab-content" id="tabPurchaseOrder" runat="server" style="width: 97%;">
                <asp:GridView ID="grdviewPurchaseOrder" CssClass="gridview" runat="server" HeaderStyle-Height="35px"
                    HeaderStyle-Font-Names="Verdana" HeaderStyle-Font-Size="11px" AutoGenerateColumns="false"
                    Width="100%">
                    <Columns>
                        <asp:TemplateField HeaderText="Sr.No." ItemStyle-Font-Names="Verdana" ItemStyle-Font-Size="11px">
                            <ItemTemplate>
                                <%#Container.DataItemIndex +1 %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Edit By" ItemStyle-Width="10%" ItemStyle-Font-Names="Verdana"
                            ItemStyle-Font-Size="11px">
                            <ItemTemplate>
                                <asp:Label ID="lblUserId" runat="server" Text='<%#Bind("userid")%>' Font-Names="Verdana"
                                    Font-Size="11px"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Log Type" ItemStyle-Width="15%" ItemStyle-Font-Names="Verdana"
                            ItemStyle-Font-Size="11px">
                            <ItemTemplate>
                                <asp:Label ID="lblLogtype" runat="server" Text='<%#Bind("logtype")%>' Font-Names="Verdana"
                                    Font-Size="11px"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="log Details" ItemStyle-Width="45%" ItemStyle-Font-Names="Verdana"
                            ItemStyle-Font-Size="11px">
                            <ItemTemplate>
                                <div id="divlogmsg" runat="server" style="height: 150px; overflow-y: scroll;" onmouseover="divscroll(this,150)">
                                    <asp:Label ID="lblmsg" runat="server" Text='<%#Bind("logmesg")%>'></asp:Label>
                                </div>
                                <script type="text/javascript">
                                    function divscroll(divid, h) {
                                        //alert(divid.id)
                                        $('#' + divid.id).slimScroll({
                                            height: h + 'px'
                                        });
                                    }
                                </script>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Page Name" ItemStyle-Width="10%" ItemStyle-Font-Names="Verdana"
                            ItemStyle-Font-Size="11px">
                            <ItemTemplate>
                                <asp:Label ID="lblPageName" runat="server" Text='<%#Bind("pagename")%>' Font-Names="Verdana"
                                    Font-Size="11px"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="IpAddress" ItemStyle-Width="10%" ItemStyle-Font-Names="Verdana"
                            ItemStyle-Font-Size="11px">
                            <ItemTemplate>
                                <asp:Label ID="lblIpAddress" runat="server" Text='<%#Bind("ipaddr")%>' Font-Names="Verdana"
                                    Font-Size="11px"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Date" ItemStyle-Width="10%" ItemStyle-Font-Names="Verdana"
                            ItemStyle-Font-Size="11px">
                            <ItemTemplate>
                                <asp:Label ID="lblDateTime" runat="server" Text='<%#Bind("datetime")%>' Font-Names="Verdana"
                                    Font-Size="11px"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </div>
            <div class="tab-content" id="tabPurchaseReceive" runat="server" style="width: 97%;">
                <asp:GridView ID="grdviewPurchaseReceive" CssClass="gridview" runat="server" HeaderStyle-Height="35px"
                    HeaderStyle-Font-Names="Verdana" HeaderStyle-Font-Size="11px" AutoGenerateColumns="false"
                    Width="100%">
                    <Columns>
                        <asp:TemplateField HeaderText="Sr.No." ItemStyle-Font-Names="Verdana" ItemStyle-Font-Size="11px">
                            <ItemTemplate>
                                <%#Container.DataItemIndex +1 %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Edit By" ItemStyle-Width="10%" ItemStyle-Font-Names="Verdana"
                            ItemStyle-Font-Size="11px">
                            <ItemTemplate>
                                <asp:Label ID="lblUserId" runat="server" Text='<%#Bind("userid")%>' Font-Names="Verdana"
                                    Font-Size="11px"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Log Type" ItemStyle-Width="15%" ItemStyle-Font-Names="Verdana"
                            ItemStyle-Font-Size="11px">
                            <ItemTemplate>
                                <asp:Label ID="lblLogtype" runat="server" Text='<%#Bind("logtype")%>' Font-Names="Verdana"
                                    Font-Size="11px"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="log Details" ItemStyle-Width="45%" ItemStyle-Font-Names="Verdana"
                            ItemStyle-Font-Size="11px">
                            <ItemTemplate>
                                <div id="divlogmsg" runat="server" style="height: 150px; overflow-y: scroll;" onmouseover="divscroll(this,150)">
                                    <asp:Label ID="lblmsg" runat="server" Text='<%#Bind("logmesg")%>'></asp:Label>
                                </div>
                                <script type="text/javascript">
                                    function divscroll(divid, h) {
                                        //alert(divid.id)
                                        $('#' + divid.id).slimScroll({
                                            height: h + 'px'
                                        });
                                    }
                                </script>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Page Name" ItemStyle-Width="10%" ItemStyle-Font-Names="Verdana"
                            ItemStyle-Font-Size="11px">
                            <ItemTemplate>
                                <asp:Label ID="lblPageName" runat="server" Text='<%#Bind("pagename")%>' Font-Names="Verdana"
                                    Font-Size="11px"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="IpAddress" ItemStyle-Width="10%" ItemStyle-Font-Names="Verdana"
                            ItemStyle-Font-Size="11px">
                            <ItemTemplate>
                                <asp:Label ID="lblIpAddress" runat="server" Text='<%#Bind("ipaddr")%>' Font-Names="Verdana"
                                    Font-Size="11px"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Date" ItemStyle-Width="10%" ItemStyle-Font-Names="Verdana"
                            ItemStyle-Font-Size="11px">
                            <ItemTemplate>
                                <asp:Label ID="lblDateTime" runat="server" Text='<%#Bind("datetime")%>' Font-Names="Verdana"
                                    Font-Size="11px"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </div>
            <div class="tab-content" id="tabItemRequest" runat="server" style="width: 97%;">
                <asp:GridView ID="grdviewItemRequest" CssClass="gridview" runat="server" HeaderStyle-Height="35px"
                    HeaderStyle-Font-Names="Verdana" HeaderStyle-Font-Size="11px" AutoGenerateColumns="false"
                    Width="100%">
                    <Columns>
                        <asp:TemplateField HeaderText="Sr.No." ItemStyle-Font-Names="Verdana" ItemStyle-Font-Size="11px">
                            <ItemTemplate>
                                <%#Container.DataItemIndex +1 %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Edit By" ItemStyle-Width="10%" ItemStyle-Font-Names="Verdana"
                            ItemStyle-Font-Size="11px">
                            <ItemTemplate>
                                <asp:Label ID="lblUserId" runat="server" Text='<%#Bind("userid")%>' Font-Names="Verdana"
                                    Font-Size="11px"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Log Type" ItemStyle-Width="15%" ItemStyle-Font-Names="Verdana"
                            ItemStyle-Font-Size="11px">
                            <ItemTemplate>
                                <asp:Label ID="lblLogtype" runat="server" Text='<%#Bind("logtype")%>' Font-Names="Verdana"
                                    Font-Size="11px"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="log Details" ItemStyle-Width="45%" ItemStyle-Font-Names="Verdana"
                            ItemStyle-Font-Size="11px">
                            <ItemTemplate>
                                <div id="divlogmsg" runat="server" style="height: 150px; overflow-y: scroll;" onmouseover="divscroll(this,150)">
                                    <asp:Label ID="lblmsg" runat="server" Text='<%#Bind("logmesg")%>'></asp:Label>
                                </div>
                                <script type="text/javascript">
                                    function divscroll(divid, h) {
                                        //alert(divid.id)
                                        $('#' + divid.id).slimScroll({
                                            height: h + 'px'
                                        });
                                    }
                                </script>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Page Name" ItemStyle-Width="10%" ItemStyle-Font-Names="Verdana"
                            ItemStyle-Font-Size="11px">
                            <ItemTemplate>
                                <asp:Label ID="lblPageName" runat="server" Text='<%#Bind("pagename")%>' Font-Names="Verdana"
                                    Font-Size="11px"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="IpAddress" ItemStyle-Width="10%" ItemStyle-Font-Names="Verdana"
                            ItemStyle-Font-Size="11px">
                            <ItemTemplate>
                                <asp:Label ID="lblIpAddress" runat="server" Text='<%#Bind("ipaddr")%>' Font-Names="Verdana"
                                    Font-Size="11px"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Date" ItemStyle-Width="10%" ItemStyle-Font-Names="Verdana"
                            ItemStyle-Font-Size="11px">
                            <ItemTemplate>
                                <asp:Label ID="lblDateTime" runat="server" Text='<%#Bind("datetime")%>' Font-Names="Verdana"
                                    Font-Size="11px"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </div>
        </div>    
    </form>
</body>
</html>
